<?php /* Smarty version 2.6.18, created on 2016-11-30 16:40:49
         compiled from keep/keep.info.tpl.php */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.header.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.left.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<!--主要内容开始-->
<div class="content-wrapper">
    <section class="content">
        <div class="row">
            <section class="col-lg-12 connectedSortable">
                <div class="box box-default box-solid">
                    <form name="myform" action="" method="post" role="form" enctype="multipart/form-data">
                        <div class="box-header with-border">
                            <span class="fa fa-pencil" style="float:left; font-size:18px; padding-top:3px; color:#3c8dbc;" ></span>
                            <p class="box-title"><?php if ($this->_tpl_vars['type'] == 1): ?>继续教育详情<?php else: ?>其他资料详情<?php endif; ?></p>
                        </div>
                        <div class="box-body">
                            <input type="hidden" name="keep_type" value="<?php echo $this->_tpl_vars['type']; ?>
">
							<?php if ($this->_tpl_vars['type'] == 1): ?>
                            <div class="form-group">
                                <label for="inputPassword3" class="col-md-3 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
                                    项目名称：
                                </label>
                                <div class="input-group col-md-6 col-sm-12 col-xs-12">
                                    <?php echo $this->_tpl_vars['data']['keep_name']; ?>
</div>
                            </div>
                            <div class="form-group">
                                <label for="inputPassword3" class="col-md-3 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
                                    <?php if ($this->_tpl_vars['type'] == 1): ?>教师姓名<?php else: ?>提交者<?php endif; ?>：
                                </label>
                                <div class="input-group col-md-6 col-sm-12 col-xs-12">
                                    <?php echo $this->_tpl_vars['data']['keep_owner']; ?>
</div>
                            </div>
                            <div class="form-group">
                                <label for="inputPassword3" class="col-md-3 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
                                    <?php if ($this->_tpl_vars['type'] == 1): ?>培训日期<?php else: ?>提交日期<?php endif; ?>：
                                </label>
                                <div class="input-group col-md-6 col-sm-12 col-xs-12">
                                    <?php echo $this->_tpl_vars['data']['keep_time']; ?>
<div class="input-group-addon">
                                        <i class="fa fa-calendar"></i>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="form-group">
                                <label for="inputPassword3" class="col-md-3 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
                                    培训机构：
                                </label>
                                <div class="input-group col-md-6 col-sm-12 col-xs-12">
                                    <?php echo $this->_tpl_vars['data']['keep_unit']; ?>
</div>
                            </div>
                            <div class="form-group">
                                <label for="inputPassword3" class="col-md-3 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
                                    学时：
                                </label>
                                <div class="input-group col-md-6 col-sm-12 col-xs-12">
                                    <?php echo $this->_tpl_vars['data']['keep_hour']; ?>
</div>
                            </div>

                            <div class="form-group">
                                <label for="inputPassword3" class="col-md-3 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
                                    学分：
                                </label>
                                <div class="input-group col-md-6 col-sm-12 col-xs-12">
                                    <?php echo $this->_tpl_vars['data']['keep_min']; ?>
</div>
                            </div>

                            <div class="form-group">
                                <label for="inputPassword3" class="col-md-3 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
                                    实际学分：
                                </label>
                                <div class="input-group col-md-6 col-sm-12 col-xs-12">
                                    <?php echo $this->_tpl_vars['data']['keep_score']; ?>
</div>
                            </div>
							<div class="form-group">
                                <label for="inputPassword3" class="col-md-3 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
                                    备注：
                                </label>
                                <div class="input-group col-md-6 col-sm-12 col-xs-12">
                                    <?php echo $this->_tpl_vars['data']['keep_remark']; ?>
</div>
                            </div>
                            <?php else: ?>
                            <div class="form-group">
						  <label for="inputPassword3" class="col-md-1 control-label " style="padding-right:0; padding-left:0; font-weight:500;">
							   项目名称：
						  </label>
						  <div class="input-group col-md-6 col-sm-12 col-xs-12">
							   <?php echo $this->_tpl_vars['data']['keep_name']; ?>

						  </div> 
							</div>
							<div class="form-group">
						 <label class="col-md-1 control-label" style="padding-right:0; padding-left:0; font-weight:500;">
							   文章内容：
						  </label>
                          <div class="input-group col-md-10 col-sm-12 col-xs-12">
						     <?php echo $this->_tpl_vars['data']['keep_content']; ?>

						 </div>
					</div>
					<div class="form-group">
		
						  <div class="input-group  col-sm-12 col-xs-12">
                              <p>附件：<a href="index.php?a=keep.output&keep_file=<?php echo $this->_tpl_vars['data']['keep_file']; ?>
"><?php echo $this->_tpl_vars['data']['keep_file']; ?>
</a></p>
						  </div> 
				    </div>
							<?php endif; ?>
                        </div><!--box-body -->

                    </form>
                </div><!--box box-default box-solid-->
            </section>

        </div><!--row-->
    </section>
</div>
<!--主要内容结束-->
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.footer.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<script>
    $(function() {
        $( "#datepicker" ).datepicker({
            showOtherMonths: true,
            selectOtherMonths: true,
            changeMonth: true,
            changeYear: true,
            yearRange:"1930:2010"
        });
        $( "#datepicker1" ).datepicker({
            showOtherMonths: true,
            selectOtherMonths: true,
            changeMonth: true,
            changeYear: true
        });
        $( "#datepicker2" ).datepicker({
            showOtherMonths: true,
            selectOtherMonths: true,
            changeMonth: true,
            changeYear: true
        });
        $( "#datepicker3" ).datepicker({
            showOtherMonths: true,
            selectOtherMonths: true,
            changeMonth: true,
            changeYear: true
        });
    });
    //上传图片
    $(function(){
        var imgurl=[];
        function createfile(){
            $('#updiv').append("<input type='file'  name='photos' class='upfile'>");
        }
        function showimg(url){
            var img='<img src="'+url+'"/>';
            $('#imglist').append(img);
        }
        function addfile(){
            showimg($(this).val());
            $(this).hide();
            createfile();
            $('.upfile').bind('change',addfile);
        }
        $('.upfile').bind('change',addfile);
    })
</script>